module.exports = {
	publicPath: './',
    outputDir: 'dist',
    assetsDir: 'static',
	pages: {
		index: {
			entry: 'src/pages/index/main.js',
			template: 'public/index.html',
			filename: 'index.html',
			title: '趣木家具'
		},
			userDetail:{
			entry: 'src/pages/userDetail/main.js',
			template: 'public/userDetail.html',
			filename: 'userDetail.html',
			title: 'userDetail Page'
		},
		about: {
			entry: 'src/pages/about/main.js',
			template: 'public/about.html',
			filename: 'about.html',
			title: '关于趣木'
		},
		brand: {
			entry: 'src/pages/brand/main.js',
			template: 'public/brand.html',
			filename: 'brand.html',
			title: 'Brand Page'
		},
		contact: {
			entry: 'src/pages/contact/main.js',
			template: 'public/contact.html',
			filename: 'contact.html',
			title: '联系我们'
		},
		news: {
			entry: 'src/pages/news/main.js',
			template: 'public/news.html',
			filename: 'news.html',
			title: '趣木资讯'
		},
		products: {
			entry: 'src/pages/products/main.js',
			template: 'public/products.html',
			filename: 'products.html',
			title: 'Products Page'
		},
		ItemList: {
			entry: 'src/pages/ItemList/main.js',
			template: 'public/ItemList.html',
			filename: 'ItemList.html',
			title: '趣木商品'
		},
		login: {
			entry: 'src/pages/login/main.js',
			template: 'public/login.html',
			filename: 'login.html',
			title: '登录'
		},
		register: {
			entry: 'src/pages/register/main.js',
			template: 'public/register.html',
			filename: 'register.html',
			title: '注册'
		},
		ShoppingCart: {
			entry: 'src/pages/ShoppingCart/main.js',
			template: 'public/ShoppingCart.html',
			filename: 'ShoppingCart.html',
			title: '购物车'
		},
		detail: {
			entry: 'src/pages/detail/main.js',
			template: 'public/	',
			filename: 'detail.html',
			title: '详情'
		},
		order: {
			entry: 'src/pages/order/main.js',
			template: 'public/order.html',
			filename: 'order.html',
			title: '订单'
		}
	},
	devServer: {
	    proxy: {
	        '/api':{
	            target: "http://129.28.184.223:8080",
	            changeOrigin:true,
	            pathRewrite:{
	                '^/api':''
	            }
	        }
	    }
	}
}
